<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <% if (!user){ %>
  <form action="/work/reg" method="post">
  <input type="text" name="loginName">
  <input type="password" name="loginPassword">
  <input type="password" name="confirm">\
  <img src="/work/Vimg" alt="注册验证码">
  <input type="text" name="Vimg">
  <input type="submit" value="注册">
  </form>
  <% } %>
  <ul>
    <% for(let i=0;i<message.length;i++){ %>
      <li><% message[i].username %> : <% message[i].message %></li>
    <% } %>
  </ul>

</body>
</html>
